package com.tyun.modules.sys.mapper;

import com.tyun.base.SuperMapper;
import com.tyun.modules.sys.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author taocongcong
 * @create 2017-12-15 13:42
 */
@Mapper
public interface SysUserMapper extends SuperMapper<SysUser> {

    /**
     * 根据登录用户id查询权限获取menu
     * @param userId
     */
    List<String> queryMenuIdByUserId(@Param("userId")String userId);

    /**
     * 根据登录用户id查询权限并获取的menu的权限字段
     * @param userId
     */
    List<String> queryUserMenuPermsList(@Param("userId")String userId);

    List<String> queryMenuIdByRoleId(@Param("roleId")String roleId);
}
